/*
 * Created on Sun Oct 01 2017
 * @flow
 * Copyright (c) 2017 jianglinjie
 */
'use strict';

import mongoose from 'mongoose';
const Schema = mongoose.Schema;

const fileSchema = new Schema({
  uri: {
    type: String,
    required: true,
  },
  mimeType: {
    type: String,
    required: true,
  },
  md5: String,
  createTime: { 
    type: Date, 
    default: Date.now 
  },  
});

export default mongoose.model('File', fileSchema);
